package com.findfuture.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by IntelliJ IDEA.
 * User: Alex
 * Date: 11-11-23
 * Time: 下午8:49
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/forward")
public class PageForwardController {

    @RequestMapping("/{url}/{url1}")
    public String forward(@PathVariable String url ,@PathVariable String url1 ) {
        if(url1.equals("html")){
            return url;
        }else{
        return url + "/" + url1;
        }
    }
}
